package books.borrowing.dao;

import java.util.List;

import books.borrowing.entity.BookBorrowingEntity;

public interface IBookBorrowingDao {

	public void save(BookBorrowingEntity _rent) throws Exception;
	public void update(BookBorrowingEntity _rent);
	public void delete(BookBorrowingEntity _rent);
	
	//public List<BookBorrowingEntity> allRents();
	
	public BookBorrowingEntity rentBook(String _login, String _ISBN) throws Exception;
	public BookBorrowingEntity returnBook(String _login, String _ISBN);
	
	public List<BookBorrowingEntity> findRent(String _login, String _ISBN);
	
	public List<BookBorrowingEntity> findSubscriberRents(String _login);

}
